package servlet;

import java.io.IOException;
import java.io.PrintWriter;
import java.sql.ResultSet;
import java.util.List;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import vo.Information;
import dao.InformationDAO;

import JavaBeans.DbUtil;

public class DeleteShow extends HttpServlet {


	public DeleteShow() {
		super();
	}


	public void destroy() {
		super.destroy(); 
	
	}

	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {

		request.setCharacterEncoding("UTF-8");
		
		String user_name_server = (String)request.getSession().getAttribute("user_name_server");
        
		InformationDAO ido = new InformationDAO();
		List<Information> list = ido.selectAll(user_name_server,0);
		
		RequestDispatcher rd;
		request.setAttribute("delete_show",list);
		rd = request
				.getRequestDispatcher("/admin/delete/info_delete_show.jsp");
		rd.forward(request, response);
		
	}


	public void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {

	}

	public void init() throws ServletException {

	}

}
